package cn.john.hrm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
// 标识为Eureka客户端
@EnableEurekaClient
// 扫描包路径
@MapperScan("cn.john.hrm.mapper")
// 开启SpringCache
@EnableCaching
// 开启Feign的远程调用
@EnableFeignClients
public class CourseServerApp {
    public static void main(String[] args) {
        SpringApplication.run(CourseServerApp.class);
    }
}
